ComponentOne RichTextBox for UWP
Closest(Func<C1TextPointer,Boolean>,Func<C1TextPointer,C1TextPointer,Int32>,C1TextElement) Method

C1.Xaml.RichTextBox.Documents Namespace > C1TextPointer Class > Closest Method : Closest(Func<C1TextPointer,Boolean>,Func<C1TextPointer,C1TextPointer,Int32>,C1TextElement) Method
The predicate that must be satisfied.
A distance function.
The range to be searched in.
Returns the closest position that satisfies a predicate.
Syntax
'Declaration
 
Public Overloads Function Closest( _
   ByVal predicate As System.Func(Of C1TextPointer,Boolean), _
   ByVal distance As System.Func(Of C1TextPointer,C1TextPointer,Integer), _
   ByVal range As C1TextElement _
) As C1TextPointer
public C1TextPointer Closest( 
   System.Func<C1TextPointer,bool> predicate,
   System.Func<C1TextPointer,C1TextPointer,int> distance,
   C1TextElement range
)

Parameters

predicate
The predicate that must be satisfied.
distance
A distance function.
range
The range to be searched in.

Return Value

The closest position that satisfies the predicate.
See Also

Reference

C1TextPointer Class
C1TextPointer Members
Overload List